﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPOooON.SDK.Array
{
    public class SparseArray3d<T>
    {
        private Dictionary<Tuple<int,int,int>, T> dictionary = new Dictionary<Tuple<int,int,int>, T>();
        public T this[int x, int y, int z]
        {
            get
            {
                return dictionary[new Tuple<int, int, int>(x, y, z)];
            }
            set
            {
                dictionary[new Tuple<int, int, int>(x, y, z)] = value;
            }
        }
    }
}
